﻿<cfscript>
/** 
* ORM School
* 
* @hint "Hibernate persistenter t_school. 学校基本数据表" 
* 
*/ 

component 
	displayname="public.service.orm.senate.School" 
	output=false 
	persistent=true 
	selectBeforeUpdate=true dynamicInsert=true dynamicUpdate=true 
	cacheuse="Transactional" 
	entityname="School" 
	table="t_school"
	{

	property type="string" name="SchoolID" column="sch_id" fieldtype="id" generator="assigned" hint="学校代码 参考标准JB/GDXXHKYJG-2007 高等学校和科研机构代码";

	property type="string" name="SchoolName" column="sch_name" hint="学校名称";
	property type="string" name="SchoolEnglishName" column="sch_name_eng" hint="学校英文名称";
	property type="string" name="SchoolAddress" column="sch_address" hint="学校地址";
	property type="string" name="SchoolZipCode" column="sch_zipcode" hint="邮政编码";
	property type="string" name="SchoolCityCode" column="sch_citycode" hint="行政区划码";
	property type="string" name="SchoolEstablish" column="sch_establish" hint="建校年月";

	property name="HostCode" fieldtype="many-to-one" fkcolumn="sch_host" cfc="SchoolHoster"  hint="学校举办者代码";
	property name="TypeCode" fieldtype="many-to-one" fkcolumn="sch_type" cfc="SchoolType"  hint="学校办学类型代码";
	property name="PropCode" fieldtype="many-to-one" fkcolumn="sch_prop" cfc="SchoolProperty"  hint="学校性质代码";


}

</cfscript>